import request from '@/utils/request'

export function getReserveListByPage(data) {
  return request.get('/reserve/list', { params: data })
}

export function getAllReserve(data) {
  return request.get('/reserves', data)
}

export function addReserve(data) {
  return request.post('/reserve', data)
}

export function updateReserveStatus(data) {
  return request.put('/reserve/status', data)
}

export function deleteReserve(id) {
  return request.delete('/reserve/' + id, id)
}
